package com.caifu.controller;

import com.caifu.pojo.SysUser;
import org.apache.shiro.SecurityUtils;

/**
 * ClassName : AbstractController
 *
 * @author :  yb
 * @description ：
 * @date : 2021-03-01 11:26
 */
public class AbstractController {

    public SysUser getSysUser(){
        return (SysUser) SecurityUtils.getSubject().getPrincipal();
    }

}
